<?php /* Smarty version 2.6.22, created on 2009-10-22 10:39:19
         compiled from default/cruise-left.html */ ?>
<div id="tour-sidbar">
	<h3>Search</h3>
	<form action='cruise-search.html' method='post'>
		<!--<select name='city_id'>
			<?php unset($this->_sections['city']);
$this->_sections['city']['name'] = 'city';
$this->_sections['city']['loop'] = is_array($_loop=$this->_tpl_vars['city_list']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['city']['show'] = true;
$this->_sections['city']['max'] = $this->_sections['city']['loop'];
$this->_sections['city']['step'] = 1;
$this->_sections['city']['start'] = $this->_sections['city']['step'] > 0 ? 0 : $this->_sections['city']['loop']-1;
if ($this->_sections['city']['show']) {
    $this->_sections['city']['total'] = $this->_sections['city']['loop'];
    if ($this->_sections['city']['total'] == 0)
        $this->_sections['city']['show'] = false;
} else
    $this->_sections['city']['total'] = 0;
if ($this->_sections['city']['show']):

            for ($this->_sections['city']['index'] = $this->_sections['city']['start'], $this->_sections['city']['iteration'] = 1;
                 $this->_sections['city']['iteration'] <= $this->_sections['city']['total'];
                 $this->_sections['city']['index'] += $this->_sections['city']['step'], $this->_sections['city']['iteration']++):
$this->_sections['city']['rownum'] = $this->_sections['city']['iteration'];
$this->_sections['city']['index_prev'] = $this->_sections['city']['index'] - $this->_sections['city']['step'];
$this->_sections['city']['index_next'] = $this->_sections['city']['index'] + $this->_sections['city']['step'];
$this->_sections['city']['first']      = ($this->_sections['city']['iteration'] == 1);
$this->_sections['city']['last']       = ($this->_sections['city']['iteration'] == $this->_sections['city']['total']);
?>
			<option value="<?php echo $this->_tpl_vars['city_list'][$this->_sections['city']['index']]['city_id']; ?>
"><?php echo $this->_tpl_vars['city_list'][$this->_sections['city']['index']]['city']; ?>
</option>
			<?php endfor; endif; ?>
		</select>-->
		<input id="city" name="city" type="text" value="please click me "onclick="showcruise(this)">
		<div id="cruise_tour" style="display:none; left: 270px; position: relative; background-color: white; width: 240px;border:1px solid #397EAE">
		<?php unset($this->_sections['city']);
$this->_sections['city']['name'] = 'city';
$this->_sections['city']['loop'] = is_array($_loop=$this->_tpl_vars['city_list']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['city']['show'] = true;
$this->_sections['city']['max'] = $this->_sections['city']['loop'];
$this->_sections['city']['step'] = 1;
$this->_sections['city']['start'] = $this->_sections['city']['step'] > 0 ? 0 : $this->_sections['city']['loop']-1;
if ($this->_sections['city']['show']) {
    $this->_sections['city']['total'] = $this->_sections['city']['loop'];
    if ($this->_sections['city']['total'] == 0)
        $this->_sections['city']['show'] = false;
} else
    $this->_sections['city']['total'] = 0;
if ($this->_sections['city']['show']):

            for ($this->_sections['city']['index'] = $this->_sections['city']['start'], $this->_sections['city']['iteration'] = 1;
                 $this->_sections['city']['iteration'] <= $this->_sections['city']['total'];
                 $this->_sections['city']['index'] += $this->_sections['city']['step'], $this->_sections['city']['iteration']++):
$this->_sections['city']['rownum'] = $this->_sections['city']['iteration'];
$this->_sections['city']['index_prev'] = $this->_sections['city']['index'] - $this->_sections['city']['step'];
$this->_sections['city']['index_next'] = $this->_sections['city']['index'] + $this->_sections['city']['step'];
$this->_sections['city']['first']      = ($this->_sections['city']['iteration'] == 1);
$this->_sections['city']['last']       = ($this->_sections['city']['iteration'] == $this->_sections['city']['total']);
?>
			<input onchange="givesearchvalue(this)" type="radio" name='city' value="<?php echo $this->_tpl_vars['city_list'][$this->_sections['city']['index']]['city']; ?>
"><?php echo $this->_tpl_vars['city_list'][$this->_sections['city']['index']]['city']; ?>
<br>
		<?php endfor; endif; ?>
		</div>
		<script>
			var cruise_tour= document.getElementById('cruise_tour');
			function showcruise(v){
				cruise_tour.style.position = "absolute";
				cruise_tour.targetObj = v;
				v.parentNode.insertBefore(cruise_tour,v.nextSibling);
				cruise_tour.style.display='';
			}
			function givesearchvalue(v){
				var city= document.getElementById('city');
				city.value = v.value;
				city.style.disabled=true;
				cruise_tour.style.display='none';
			}
		</script>
		<br>
		<input type="text" name="date" value="Travel date" id="date" onfocus="HS_setDate(this)" />
		<select name='quotation'>
			<option value="600-1000">US$600-US$1000 p.p</option>
			<option value="500-650">US$500-US$650 p.p</option>
			<option value="400-500">US$400-US$500 p.p</option>
			<option value="300-400">US$300-US$400 p.p</option>
			<option value="<300">US$300 less p.p</option>
		</select>
		<input type="submit" value="&nbsp;&nbsp;&nbsp;" style="background:url(<?php echo $this->_tpl_vars['base']; ?>
images/btn-go.gif) no-repeat" />
	</form>
	<h3><a href="beijing-guide.html">Beijing Guide</a></h3>
	<a target="_blank" href="/map_of_beijing.htm">Map of Beijing</a>
	<br><a href="beijing_highlights.htm">Highlights</a>
	<br><a href="bjt02.htm">City Transport</a>
	<br><a target="_blank" href="http://travel.elong.com/ape/ap.asp?Campaign_ID=4208138">Accommodation</a>
	<br><br>
	<h3><a href="beijing-tour.html">Beijing Tour</a></h3>
	<?php 
	$tour_sidbar = tour::tour_list(0,false,5);
	foreach($tour_sidbar as $k=>$v){
	echo "<a href=tour-details-{$v['id']}.html>".k::cutstr($v['title'],23)."</a><br>";
	}
	 ?>
	<br>
	<h3><a href="news.html">Travel News</a></h3>
	<?php 
	$news_sidbar = news::news_list(0,5);
	foreach($news_sidbar as $k=>$v){
	echo "<a href=news-details-{$v['nid']}.html>".k::cutstr($v['title'],23)."</a><br>";
	}
	 ?>
	<br>
	<h3><a href="cruises-guide.html">Yangtze Cruise</a></h3>
	<?php 
	$cruise_sidbar = $data = mysql::connect()->fetch_all("select * from flight ORDER BY fid DESC Limit 0,5");
	foreach($cruise_sidbar as $k=>$v){
	echo "<a href=ship-show-{$v['fid']}.html>".k::cutstr($v['fname'],23)."</a><br>";
	}
	 ?>
	<br>
	<h3><a href="contact-us.html">Contact Us</a></h3>
</div>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['base']; ?>
scripts/date.js"></script>